//
// Created by Winter on 2021/1/29.
//

#include "Application.h"

Application::Application(QApplication *qApplication, QWidget *parent) {
    this->loadStyleSheet(":/resource/style.css");
    this->resize(966, 647);
}

void Application::loadStyleSheet(const QString &sheetName) {
    QFile file(sheetName);
    file.open(QFile::ReadOnly);
    if (file.isOpen()) {
        QString styleSheet = this->styleSheet();
        styleSheet += QLatin1String(file.readAll());
        this->setStyleSheet(styleSheet);
    }
    file.close();
}

void Application::initSetting() {

}

void Application::initLayout() {

}

void Application::initConnection() {

}

void Application::initEntity() {

}


Application::~Application() {

}

